<?php

namespace app\admin\validate;
use think\Validate;

class Cate extends Validate {

    protected $rule = [
        'catename' => 'require|unique:infocate',
        'ckeywords' => 'require',
        'desc'=>'require'

    ];

    protected $message = [
        'catename.require' => '资讯名称不能为空',
        'catename.unique' => '资讯名称不能重复',
        'ckeywords.require' => '关键词不能为空',
        'desc.require' => '描述不能为空',

    ];



    protected $scene = [
        'edit' => [
           'catename'
        ],
    ];

}